<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html">
    Choose a product and enter quantity required
    <h:form id="addNewSalesInquiryItemForm">

        <h:outputText style="font-weight: bold" value="Choose a product:"/>
        <h:selectOneMenu value="#{salesInquiryBean.indicativeProductPriceId}">
            <f:selectItems value="#{salesInquiryBean.productsList}" var="p"
                           itemLabel="#{p.productName}" itemValue="#{p.id}" />
        </h:selectOneMenu>

        <br/>
        <h:outputText style="font-weight: bold" value="Quantity of Product: " />
        <h:inputText required="true" requiredMessage="Field is required." id="numOfProduct" value="#{salesInquiryBean.numOfProduct}">
        </h:inputText>

        <br/><br/>
        <h:commandButton action="addSalesInquiryItemResult.xhtml" value="Confirm Sales Inquiry Item" actionListener="#{salesInquiryBean.addNewSalesInquiryItem}"/>
    </h:form>
</ui:composition>
